package com.mdz.myapplication;

import com.mdz.myapplication.View.LayoutView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import de.felixroske.jfxsupport.SplashScreen;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@MapperScan("com.mdz.**.Mapper")
public class MyapplicationApplication extends AbstractJavaFxApplicationSupport {

    public static void main(String[] args) {
//        SpringApplication.run(MyapplicationApplication.class, args);
        launch(MyapplicationApplication.class , LayoutView.class , new SplashScreen(){
                    @Override
                    public boolean visible(){
                        return false;
                    }
                }
                ,args);
    }

}
